<template>
  <section id="tech-stack" class="section tech-stack">
    <div class="container">
      <h2 class="section-title">{{ title }}</h2>
      <div class="tech-grid">
        <div class="tech-item" v-for="(tech, index) in techStack" :key="index">
          <div class="tech-placeholder"></div>
          <h4>{{ tech.name }}</h4>
        </div>
      </div>
    </div>
  </section>
</template>

<script>
export default {
  name: 'TechStackSection',
  props: {
    title: {
      type: String,
      default: '技术栈'
    },
    techStack: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style scoped>
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: #333;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  text-align: center;
}

.tech-placeholder {
  width: 60px;
  height: 60px;
  background-color: #eee;
  border-radius: 50%;
  margin: 0 auto 10px;
}

.tech-item h4 {
  font-size: 1rem;
  color: #333;
}
</style>
